import 'package:dio/dio.dart';

class CommonHeaderInterceptor extends Interceptor {
  @override
  Future<dynamic> onRequest(RequestOptions options) {
    options.headers.addAll({
      "Access-Control-Allow-Origin": "*",
      "ccess-Control-Allow-Credentials": "true",
      "Access-Control-Allow-Methods": "POST, GET, OPTIONS, DELETE, PUT",
      "Access-Control-Max-Age": "3600",
      "Access-Control-Allow-Headers":
          "Content-Type,Access-Token,Authorization,ybg",

    });

    return super.onRequest(options);
  }
}
